original link
OverviewPhaser is introduced in the Java 7 concurrency package, and its functionality overlaps with cyclicbarrier and Countdownlatch, but provides more flexible usage, such as support for dynamically adjusting the number of registration tasks. This paper makes a simple analysis on the basis of the sample code with phaser.
Glossary
RegistrationPhaser supports dynamically adjusting the number of registration tasks through the Register () and
\ n ");// $ Buffer = fread ($ sock, 8192 );While (! Feof ($ sock) $ buffer. = fgets ($ sock, 8192 );Fclose ($ sock );}Return $ buffer;}
?>
Language file:Lang. inc. php
$ Text = Array ('IP _ invalid' => 'I want to get a valid ip, but it is [% IP %].','Sock _ connect '=> 'Ask % SERVER %...','Sock _ fail '=> 'Cannot connect to the host: % SERVER %');
?>
Other famous whois servers
1. Tucows (whois.opensrs.net) can only be connected by one connection at a timeDnsstuff is the query.
2.
supports dynamically adjusting the number of registration tasks through the Register () and bulkregister (int parties) methods.ArrivalEach phaser instance maintains a phase number with an initial value of 0. Whenever all registered tasks arrive at Phaser, phase number accumulates and is zeroed out after Integer.max_value. The arrive () and Arriveandderegister () methods are used to record arrival, where arrive (), a participant is called after the ta
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.